package com.example.demo3.util;

import com.example.demo3.bean.UserAddVo;
import lombok.Data;

@Data
public class ResultBuildVo<T> {

    public static<T> ResultVo success(T data){
        ResultVo resultVo = new ResultVo();
        resultVo.setSuccess(true);
        resultVo.setData(data);
        return resultVo;
    }
    public static ResultVo error(String message){
        ResultVo resultVo = new ResultVo();
        resultVo.setSuccess(false);
        resultVo.setData(message);
        return resultVo;
    }

}
